package com.zuxia.dao;

import java.util.List;

import com.zuxia.entity.Admin;

/**
 *绠＄悊鍛樻寔涔呭眰鎺ュ彛 
 */
public interface IAdminDao {
	/**
	 * 鐧诲綍
	 * @param name
	 * @param pwd
	 * @return
	 */
	List<Admin> login(String name,String pwd);
	
	/**
	 * 鏌ヨ鍏ㄩ儴
	 * @return
	 */
	List<Admin> selectAll();
	
	/**
	 * 鏍规嵁ID鏌ヨ
	 * @param id
	 * @return
	 */
	Admin selectId(int id);
	
	/**
	 * 鏍规嵁ID鍒犻櫎
	 * @param id
	 * @return
	 */
	int deleteAdmin(Admin admin);
	
	int saveAdmin(Admin admin);
	
	void updateAdmin(Admin admin);
}
